package pt.isec.a21210392.a21190220.ludotwist;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class OptionsMenuActivity extends Activity 
{
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_options_menu);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) 
	{
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.options_menu, menu);
		return true;
	}
	@Override
	protected void onResume() 
	{
		super.onResume();
		setContentView(R.layout.activity_options_menu);
	}
	
	public void onOptionsMenuProfile(View v)
	{
		Intent myIntent = new Intent(OptionsMenuActivity.this,SetProfileActivity.class);
		OptionsMenuActivity.this.startActivity(myIntent);
	}	
	public void onOptionsMenuHelp(View v)
	{
		Intent myIntent = new Intent(OptionsMenuActivity.this,HelpActivity.class);
		OptionsMenuActivity.this.startActivity(myIntent);
	}
	
	public void onOptionsMenuAbout(View v)
	{
		Intent myIntent = new Intent(OptionsMenuActivity.this, AboutActivity.class);
		OptionsMenuActivity.this.startActivity(myIntent);
	}
	
	public void onOptionsMenuBack(View v) 
	{
		this.finish();
	}
}